<?php

test();
function test(){
	$require=new Require_();
	try{
	$require->test();
	}catch (Exception $e){
		echo $e;
	}
}

/**
 * 
 * require的用法
 * @author Administrator
 *
 */
class Require_{
	public function test(){
		$array=include '../config/config.php';
		print_r($array);
		throw new Exception("异常");
	}
}
?>